package chapter_twelve.p169;

/**
 * Data time:2021/10/19 17:21
 * StudentID:2019112118
 * Author:hgw
 * Description:黑色边框装饰类，充当具体装饰类
 */
public class BlackBorderDecorator extends ComponentDecorator {
    public BlackBorderDecorator(Component component) {
        super(component);
    }

    public void display() {
        this.setScrollBar();
        super.display();
    }

    public void setScrollBar() {
        System.out.println("为构建增加黑色边框！");
    }
}
